/* import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.FSDataInputStream;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashMap;

public class ReadFromHdfs {
    private static HashMap<Object, Object> map;

    public static void main(String[] args) throws IOException {
        if(args.length == 0) {
            System.out.println("ERR!  请传递一个路径，指定要读取的文件，");
            return;
        }
        String filePath = args[0];
        Configuration conf =new Configuration();
        conf.set("fs.defaulFS","hdfs://192.168.159.128:9000");
        FileSystem fs = FileSystem.get(conf);
        FSDataInputStream fsDataInputStream = fs.open(new Path(filePath));
        BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(fsDataInputStream));


 */
        /* HashMap<String, Integer> stringIntegerHashMap = new HashMap<String, Integer>map = new HashMap<>();

        String nextLine  = bufferedReader.readLine();
        while (null != nextLine){
            System.out.println(nextLine);
            nextLine = bufferedReader.readLine();
        }
        fs.close();
    }
}

         */
